// _pro/cpt/service/index.js
const { $http, target, img } = getApp()
const chat = require('../../../_pub/com/wx/kf')
Component({
    properties: {

    },
    data: {
        img,
        data:{}
    },
    lifetimes:{
        created(){},
        attached(){
            $http.pull(this,'kf', { id:target })
        },
        ready(){}
    },
    methods: {
        onTap(){
            chat(this.data.data)
        }
    }
})